{% extends "iphone/base.html" %}

{% block content %}
<div class="header">
{{ user_name }}
:: <a href="/iphone/">Whiteboard</a>
</div>

<table cellpadding="0" class="tab">
{% if tasks %}
	{% for task in tasks %}
	<div class="task_item">
	{% if task.done %}
		<img src="/appmedia/done.gif">
	{% else %}
		<img src="/appmedia/undone.gif">
	{% endif %}
	
	{{task.name}}
	
	<span class="info">
	{% if task.project %}
		- {{task.project}}
	{% endif %}
	
	{% if task.task_date %}
		{{task.task_date}}
	{% endif %}
	
	{{task.time_spent|floatformat:1}} h
	</span>
	</div>
	{% endfor %}
{% else %}
	<p>&nbsp;</p>
	There is no active tasks here, or may be <b>{{user_name}}</b> don't share tasks with you.
	<p>&nbsp;</p>
	<b>Note:</b> It's may be required to <a href="/iphone/accounts/login/">Sign in</a> to view shared tasks. 
	<br />
	User may share tasks with anyone or only with some users. If you one of them, try to <a href="/iphone/accounts/login/">Sign in</a>
	and revisit this page.
	<p>&nbsp;</p>
{% endif %}
</table>
{% endblock %}